﻿<%@ Page Language="C#" MasterPageFile="Template.Master" Inherits="System.Web.Mvc.ViewPage<Rail.Net.Common.Model.ListableItem>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Data" runat="server">
<%
    var val = Model.Content.Select(x => new SelectListItem { Text = x.Name, Value = x.Value, Selected = Model.SelectedItem.Value == x.Value });
%>
<%= Html.DropDownListFor(x => x.SelectedItem.Value, val) %>
</asp:Content>